#include "string.h"
#include "comp_misc_lib_rtt.h"
#include "rtthread.h"
#include "rtdevice.h"


void tiny_pin_toggle(rt_base_t pin)
{
    rt_pin_write(pin, (rt_pin_read(pin) == PIN_HIGH) ? PIN_LOW : PIN_HIGH);
}

void tiny_pin_mode(rt_base_t pin, rt_base_t mode)
{
    rt_pin_mode(pin, mode);
}
void tiny_pin_write(rt_base_t pin, rt_base_t value)
{
    rt_pin_write(pin, value);
}

int tiny_pin_read(rt_base_t pin)
{
    return rt_pin_read(pin);
}

